<?php

// Copyright 2019 Hackware SpA <human@hackware.cl>
// "Hackware Web Services Core" is released under the MIT License terms.

namespace Hawese\Core\Http\Controllers;

class HomeController
{
    public function index()
    {
        $links = [];

        if (class_exists(\Hawese\Wallet\Wallet::class))
            $links['wallet_sourcecode'] = config('wallet.source_url');

        if (class_exists(\Hawese\Payment\Payment::class))
            $links['payment_sourcecode'] = config('payment.source_url');

        return ['links' => $links];
    }
}
